import request from '@/utils/request'
// 公共接口
export function getDatumByCompanyId() {
  return request({
    url: '/datum/getAllDatum',
    method: 'post'
  })
}

export function getSocialByCompanyId() {
  return request({
    url: '/social/getAllSocial',
    method: 'post'
  })
}

export function getExamByCompanyId() {
  return request({
    url: '/exam/getAllExam',
    method: 'post'
  })
}

export function toGetCompanyInfo() {
  return request({
    url: '/common/getCompanyInfo',
    method: 'get'
  })
}

export function toGetRelData(data) {
  return request({
    url: '/common/toGetRelData',
    method: 'post',
    params: data
  })
}
export function getModelPermission(data) {
  return request({
    url: '/permission/getModelPermission',
    method: 'post',
    params: data
  })
}

export function changeTableValue(data) {
  return request({
    url: '/common/changeTableValue',
    method: 'post',
    params: data
  })
}

export function delImg(data) {
  return request({
    url: '/common/delOssImg',
    method: 'post',
    data
  })
}
